package main

func main() {
	var a = []int{1, 2, 3}
	var b = []string{"a", "b", "c"}
	printArray(a)
	printArray(b)
}

func printArray[T int | string](a []T) {
	for _, v := range a {
		println(v)
	}
}
